package com.gitee.wsl.prism4j

class GrammarImpl(private val name: String,
                  private val tokens: MutableList<Prism4j.Token>
) : Prism4j.Grammar {
    override fun name(): String {
        return name
    }

    override fun tokens(): MutableList<Prism4j.Token> {
        return tokens
    }

    override fun toString(): String {
        return ToString.toString(this)
    }
}
